package cn.wolfcode.p2p.base.domain;

import cn.wolfcode.base.BaseDomain;
import cn.wolfcode.p2p.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.HashMap;

/**
 *    
 *    字典明细
 *    @author 
 *    @since 2018-11-23 14:03:01
 */
@Getter@Setter
@Accessors(chain = true)
public class SystemDictionaryItem extends BaseDomain {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
     * 
     */
    private Long parentId;

    /**
     * 名称
     */
    private String title;

    /**
     * 序号
     */
    private Integer sequence;

    public String getJsonString(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("sequence", sequence);
        map.put("title", title);

        return JSONUtil.toJSONString(map);
    }
}